<?php

use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;

class CreateResumeoTable extends Migration
{
    /**
     * Run the migrations.
     *
     * @return void
     */
    public function up()
    {
        Schema::create('resume', function(Blueprint $table)
        {
            $table->increments('id');
            $table->integer('user_id')->default(0)->comment('发送简历的用户id');
            $table->string('position_type')->nullable()->comment('职位类型 long：长期工 short：短期工');
            $table->string('education')->nullable()->comment('个人学历');
            $table->string('work_experience_num',64)->nullable()->comment('工作经验年限');
            $table->string('address_detail',64)->nullable()->comment('现住地址');
            $table->string('province',64)->nullable()->comment('省份');
            $table->string('city',64)->nullable()->comment('城市');
            $table->string('area',64)->nullable()->comment('地区');
            $table->string('contact_number',64)->nullable()->comment('联系方式');
            $table->string('job_status',64)->nullable()->comment('求职状态');
            $table->string('work_nature',64)->nullable()->comment('工作性质');
            $table->integer('job_type_id')->default(0)->comment('职位类型id');
            $table->string('job_detail')->nullable()->comment('期望岗位');
            $table->string('expected_salary')->nullable()->comment('期望薪资');
            $table->text('skill')->nullable()->comment('技能');
            $table->string('email',64)->nullable()->comment('邮箱地址');
            $table->softDeletes();
            $table->timestamps();
        });
    }

    /**
     * Reverse the migrations.
     *
     * @return void
     */
    public function down()
    {
        //
    }
}

